<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
$path = JURI::root()."images/image_product/thumb/";
JPluginHelper::importPlugin('content');
$dispatcher	= JDispatcher::getInstance();
?>
<?php foreach($this->items as $i => $item): ?>
	<tr class="row<?php echo $i % 2; ?>">
		<td>
			<?php echo $i+1; ?>
		</td>
		<td>
			<?php echo JHtml::_('grid.id', $i, $item->id); ?>
		</td>
		<td>
			<a href="<?php echo JRoute::_('index.php?option=com_shop&view=product&layout=edit&id='.$item->id); ?>"><?php echo $item->vtitle; ?></a><br /><?php echo $item->etitle; ?>
		</td>
         <td>
<?php $dispatcher->trigger('getCategoryName',array($item->catid,&$name)); echo $name;?>
        </td>
         <td class="center">
         	<?php echo $item->email; ?>
		</td>
         <td class="center">
			<?php echo $item->phone; ?>
		</td>
        <td class="center">
        	<?php echo $item->address; ?>
		</td>
       
        <td class="center">
					<?php echo JHtml::_('jgrid.published', $item->state, $i,'products.'); ?>
		</td>
         <td class="order">
 <span><?php echo $this->pagination->orderUpIcon($i, true, 'products.orderup', 'JLIB_HTML_MOVE_UP', true); ?></span>
 <span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, true, 'products.orderdown', 'JLIB_HTML_MOVE_DOWN', true); ?></span>
       <input type="text" name="order[]" size="5" value="<?php echo $item->ordering;?>"  class="text-area-order" />
       </td>
        <td class="center">
        <img src="<?php echo JURI::root().'images/logo_image/thumb/'.$item->logo_img; ?>" width="32" />
        </td>
        <td class="center">
        	<?php echo $item->id; ?>
        </td>
	</tr>
<?php endforeach; ?>